<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    {{--<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>--}}
    <script src="http://issues.wenzhixin.net.cn/bootstrap-table/assets/jquery.min.js"></script>

    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    {{--<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>--}}
    <script src="http://issues.wenzhixin.net.cn/bootstrap-table/assets/bootstrap/js/bootstrap.min.js"></script>

    {{--<script src="https://cdn.bootcss.com/bootstrap-table/1.12.1/bootstrap-table-locale-all.min.js"></script>--}}
    <link href="../js/bootstrap/bootstrap_table/bootstrap-table.css" rel="stylesheet">
    {{--<script src="../js/bootstrap/bootstrap_table/bootstrap-table.js"></script>--}}
    {{--<script src="../js/bootstrap/bootstrap_table/extensions/export/bootstrap-table-export.js"></script>--}}

    <script src="http://issues.wenzhixin.net.cn/bootstrap-table/assets/bootstrap-table/src/bootstrap-table.js"></script>
    <script src="http://issues.wenzhixin.net.cn/bootstrap-table/assets/bootstrap-table/src/extensions/export/bootstrap-table-export.js"></script>


    {{--<script src="http://crm.imaohu.com/js/bootstrap/bootstrap-editable.js"></script>--}}
    {{--<link href="http://crm.imaohu.com/js/bootstrap/bootstrap-editable.css" rel="stylesheet">--}}

    {{--<script src="https://cdn.bootcss.com/bootstrap-table/1.12.1/extensions/editable/bootstrap-table-editable.min.js"></script>--}}

    {{--<link href="https://cdn.bootcss.com/bootstrap-table/1.12.1/extensions/click-edit-row/bootstrap-table-click-edit-row.css" rel="stylesheet">--}}
    {{--<script src="https://cdn.bootcss.com/bootstrap-table/1.12.1/extensions/click-edit-row/bootstrap-table-click-edit-row.min.js"></script>--}}

    {{--<script src="../js/bootstrap/tableExport/libs/pdfmake/pdfmake.min.js"></script>--}}
    {{--<script src="../js/bootstrap/tableExport/libs/pdfmake/vfs_fonts.js"></script>--}}
    {{--<script type="text/javascript" src="../js/bootstrap/tableExport/libs/FileSaver/FileSaver.min.js"></script>--}}
    {{--<script type="text/javascript" src="../js/bootstrap/tableExport/libs/jsPDF/jspdf.min.js"></script>--}}
    {{--<script type="text/javascript" src="../js/bootstrap/tableExport/libs/jsPDF-AutoTable/jspdf.plugin.autotable.js"></script>--}}
    <script type="text/javascript" src="../js/bootstrap/tableExport/tableExport.js"></script>


    <title>html</title>
</head>
<body>

<div class="container">
    <h1>Export</h1>
    <div id="toolbar">
        <select class="form-control">
            <option value="">Export Basic</option>
            <option value="all">Export All</option>
            <option value="selected">Export Selected</option>
        </select>
    </div>
    <table id="table"
           data-toggle="table"
           data-show-export="true"
           data-pagination="true"
           data-click-to-select="true"
           data-url="http://www.html.wv/bootstrap_ajax">
        <thead>
        <tr>
            <th data-field="state" data-checkbox="true"></th>
            <th data-field="username">ID</th>
            <th data-field="rmb">Item Name</th>
            <th data-field="invite_num">Item Price</th>
        </tr>
        </thead>
    </table>
</div>
<script>
    var $table = $('#table');
    $(function () {
        $('#toolbar').find('select').change(function () {
            $table.bootstrapTable('destroy').bootstrapTable({
                exportDataType: $(this).val()
            });
        });
    })
</script>

</body>
</html>